<div class="warp weibo_item mdui-shadow-2 mdui-m-b-2">
    <!-- 粉丝模版 -->
    <div user_id="{{$data->user_id}}" class="mdui-row mdui-p-a-2">
        <!-- 用户头像 -->
        <div class="mdui-col-md-1">
            <img src="{{asset('/images/50x50.png')}}" alt="Image">
        </div>
        <!-- 用户信息 -->
        <div class="mdui-col-md-11 mdui-typo">
            <a href="{{url('/u',['user_id'=>$data->user_id])}}">
                <strong>{{$data->nickname}}</strong>
            </a>
            <div class="mdui-row">
                <div class="mdui-col-md-10">
                    <p>
                        <small>关注</small>
                        <a href="{{url('/u/'.$data->user_id.'/follow')}}">
                            <small>{{count(explode(',', $data->following))}}</small>
                        </a>
                        <small>|</small>
                        <small>粉丝</small>
                        <a href="{{url('/u/'.$data->user_id.'/follow')}}">
                            <small>{{count(explode(',', $data->fans))}}</small>
                        </a>
                    </p>
                </div>
                <div class="mdui-col-md-2">
                    {{--如果浏览的是自己的页面，显示移除粉丝按钮--}}
                    @if($info->user_id == (Session::get('user.id')))
                    <span do="remove" class="btn-removeFans mdui-btn mdui-btn-dense mdui-ripple mdui-color-blue">
                        <span>移除粉丝</span>
                    </span>
                    @endif
                    <div user_id="{{$data->user_id}}">
                            {{--如果已关注该用户--}}
                            @if(in_array($data->user_id, $follows))
                                {{--该用户已被我关注--}}
                                <button do="cancel" class="btn-follow mdui-btn mdui-btn-dense
                                mdui-ripple mdui-text-color-orange">
                                <i class="mdui-icon material-icons">&#xe7f0;</i>
                                <span>取消关注</span>
                                </button>
                            @else
                                <button do="follow"
                                        class="btn-follow mdui-col mdui-btn mdui-ripple">
                                <i class="mdui-icon material-icons">&#xe7f0;</i>
                                <span>关注</span>
                                </button>
                            @endif
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>